package pt.inescid.components.policyengine.heimdall.base;

import java.io.Serializable;

public class EventField implements Serializable {
	private int fieldId;
	private Object value;
	
	

	public EventField(int fieldId, Object value) {
		super();
		this.fieldId = fieldId;
		this.value = value;
	}

	public int getFieldId() {
		return fieldId;
	}

	public Object getValue() {
		return value;
	}

	public void setFieldId(int fieldId) {
		this.fieldId = fieldId;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String toString() {
		return (fieldId + "-" + value.toString());
	} // toString
	
	public boolean equals(Object param) {
		EventField other = (EventField) param;
		return (fieldId == other.getFieldId() && 
				value.equals(other.getValue()));
	}
}; // EventField
